package cn.com.mapper;

import cn.com.beans.PResource;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface PResourceMapper {
    int deleteByIds(@Param("ids") Integer...ids);

    int insert(PResource record);

    List<PResource> findAll(PResource pResource);

    PResource findByid(Integer id);

    int update(PResource resource);


    List<PResource> findByRoleId(@Param("roleId") Integer roleId);

    void deleteAuthorization(@Param("roleId") Integer accountId);

    void authorization(@Param("roleId") Integer accountId,@Param("resourceIds") Integer ...resourceIds);
}